<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>

</body>
<script>
    //构造函数
    var list = new Array(); //空数组
    // console.log(typeof list);
    var list = new Array(11);//指定数组长度
    var list = new Array(41,1,'123',true,false,null);
    //指定数组初始值
    //JSON方式
    //var list = [];//空数组
    var list = [41,1,'123',true,null];//指定数组初始值

    list[0] = 'abc';
    list[1] = 666;
    // list[] = 666;//NO
    

    console.log(list);
    console.log(typeof list);
    console.log(list.constructor);
    console.log(list.length);
    //console.log(list[0]);
    //console.log(list[50]); //undefined    
</script>
</html>